import 'dart:math';

/// skip = Returns an Iterable that provides all but the first count elements.
/// 改正:  widen the type!
void loop(final Iterable<int> list) {
  if (list.isNotEmpty) {
    print(list.first);
    loop(list.skip(1));
  }
}

void main() {
  final Random rng = Random();
  final List<int> list = List<int>.generate(3, (i) => rng.nextInt(10));
  print(list.toList());
  loop(list);
}
//EOP
